Skip to content

Conversation

@Aryex
Copy link
Contributor

@Aryex Aryex commented Nov 21, 2025

Overview

This PR is a proposal to add a website link to the client list page to support linking the new Valkey GLIDE website.

It also fixes a bug in the template file.

Issue

The client page only display repo links and does not support website link.

Adding Website Links

The template now displays a link to the client's website, if one is provided in the client's data file. This is handled by conditionally rendering the link only when a non-empty website URL is available.

Here's what the python section looks like:
image

Fixes Variable Shadowing

Resolves an issue where a client variable was being shadowed within a loop, which could lead to unpredictable behavior. The shadowing variable has been renamed to first_client.

Related issues

#416

Signed-off-by: Alex Le <Alex.Le@improving.com>
Signed-off-by: Alex Le <Alex.Le@improving.com>
@Aryex Aryex changed the title Add client-list website links and fix template variable shadowing Support website links in client list and fix template variable shadowing Nov 21, 2025
Copy link
Member

@stockholmux stockholmux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. @Aryex Did the 'variable shadowing' actually cause problems? My understanding is the tera templates had short term contexts unless explicitly global.

@stockholmux stockholmux merged commit 5a826ad into valkey-io:main Nov 25, 2025
1 check passed
@Aryex
Copy link
Contributor Author

Aryex commented Nov 26, 2025

LGTM. @Aryex Did the 'variable shadowing' actually cause problems? My understanding is the tera templates had short term contexts unless explicitly global.

It seems so. For clients without a website, it was still rendering the first website Website: https://glide.valkey.io/languages/python/ from the first client (Glide Python) even though it nothing.

When I tried renaming the clients it fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants